package com.fortune.dto.in.distributorOrder;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.fortune.common.paging.PagingDto;
import com.fortune.constants.enums.Approve;

import io.swagger.annotations.ApiModelProperty;

public class DistributorOrderListDto extends PagingDto{
	@NotNull(message="类型不能为空")
	@ApiModelProperty(example="是否批准（'NO','YES'）")
	private Approve type;
	@ApiModelProperty(example="搜索条件")
	private String search;
	@ApiModelProperty(example="经销商id")
	private String did;
	@ApiModelProperty(example="排序依据(起始日期:startTime,截止日期:endTime,满数量:achieveNum,赠数量:giftNum,优惠名称:name,商品名称:productName,商品编号:producNumber,默认为startTime)",allowableValues = "startTime,endTime,achieveNum,giftNum,name,productName,producNumber")
	private String order;
	@Min(value = 0,message = "最小值为0")
	@Max(value = 1,message = "最大值为1")
	@ApiModelProperty(example="排序类型(0升序,1降序,默认为1)")
	private Integer types;

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public Integer getTypes() {
		return types;
	}

	public void setTypes(Integer types) {
		this.types = types;
	}

	public Approve getType() {
		return type;
	}
	public void setType(Approve type) {
		this.type = type;
	}
	public String getSearch() {
		return search;
	}
	public void setSearch(String search) {
		this.search = search;
	}
	public String getDid() {
		return did;
	}
	public void setDid(String did) {
		this.did = did;
	}
	@Override
	public String toString() {
		return "DistributorOrderListDto [type=" + type + ", search=" + search + ", did=" + did + "]";
	}
}
